package com.itany.corejava.code11_io.字节流;

import java.io.InputStream;
import java.io.Serializable;

/**
 * @author MissChen
 * @version 1.0
 * @date 2023 年11月27日 13:37
 */
public class User implements Serializable {

    //序列化和反序列中过程中进行核验的版本号
    private static final long serialVersionUID = -8541739474479563079L;



    private Integer id;
    private String username;
    private String password;



    public User() {
    }

    public User(Integer id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
